<template>
  <view class="activity-notice">
    <view class="list">
      <view class="item">
        <view class="first">
          <view class="top">
            <image class="logo" src="https://files.yzsheng.com/client/commodity/logo.png"></image>
            <text class="text">7迈车</text>
          </view>
          <view class="title">戳我抢海量洗车券，仅需9.9</view>
          <image class="img" src="https://files.yzsheng.com/goodimg/factoryimg/2593_factory_44.png" mode="widthFix"></image>
        </view>
      </view>
      
      <view class="item has-child">
        <view class="first">
          <view class="top">
            <image class="logo" src="https://files.yzsheng.com/client/commodity/logo.png"></image>
            <text class="text">7迈车</text>
          </view>
          <view class="title">戳我抢海量洗车券，仅需9.9</view>
          <image class="img" src="https://files.yzsheng.com/goodimg/factoryimg/2593_factory_44.png" mode="widthFix"></image>
        </view>
        <view class="children-list">
          <view class="children-item">
            <text class="title">浑了！迈巴赫清仓特价9.9 浑了迈巴赫清仓特浑了迈巴赫</text>
            <image class="img" src="https://files.yzsheng.com/goodimg/factoryimg/2593_factory_44.png"></image>
          </view>
          <view class="children-item">
            <text class="title">浑了！迈巴赫清仓特价9.9 浑了迈巴赫清仓特浑了迈巴赫</text>
            <image class="img" src="https://files.yzsheng.com/goodimg/factoryimg/2593_factory_44.png"></image>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  methods: {
    
  }
}
</script>

<style lang="scss">
page{
  background-color: #f6f6f6;
}
.activity-notice{
  overflow: hidden;
  .list{
    padding: 0 24rpx;
    .item{
      background-color: #fff;
      margin: 24rpx 0;
      box-shadow: 0 0 10rpx 0 rgba(0, 0, 0, 0.1);
      border-radius: 10rpx;
      .first{
        padding: 0 32rpx;
        overflow: hidden;
        .top{
          display: flex;
          align-items: center;
          padding-top: 30rpx;
          .logo{
            width: 80rpx;
            height: 80rpx;
            border-radius: 80rpx;
          }
          .text{
            margin-left: 22rpx;
            color: #333;
            font-size: 30rpx;
          }
        }
        .title{
          font-size: 32rpx;
          color: #333;
          line-height: 44rpx;
          margin: 20rpx 0;
        }
        .img{
          display: block;
          width: 100%;
          border-radius: 10rpx;
          margin-bottom: 40rpx;
        }
      }
      .children-list{
        padding: 0 18rpx;
        .children-item{
          display: flex;
          align-items: center;
          padding: 32rpx 18rpx;
          border-top: 2rpx solid #eee;
          .title{
            flex: 1;
            display: block;
            font-size: 28rpx;
            color: #333;
            line-height: 52rpx;
            overflow: hidden;
            word-break: break-all;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
          }
          .img{
            display: block;
            width: 222rpx;
            height: 140rpx;
            border-radius: 10rpx;
            margin-left: 68rpx;
          }
        }
        .children-item:first-child{
          border-top: none;
        }
      }
    }
    .has-child{
      .first{
        .img{
          margin-bottom: 0;
        }
      }
    }
  }
}
</style>
